package com.lesso.yjy.sunflower.model;

import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableLogic;
import com.baomidou.mybatisplus.annotations.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.time.LocalTime;

@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("base_attendance_rule")
public class AttendanceRule extends BaseModel<AttendanceRule> {
    private static final long serialVersionUID = 1L;

    public static final String RULE_NAME = "rule_name";

    @TableField("rule_code")
    private String ruleCode;

    @TableField("rule_name")
    private String ruleName;

    @TableField("work_start_time")
    private LocalTime workStartTime;

    @TableField("work_end_time")
    private LocalTime workEndTime;

    @TableField("late_threshold")
    private Integer lateThreshold;

    @TableField("early_threshold")
    private Integer earlyThreshold;

    @TableField("del_status")
    @TableLogic
    private Integer delStatus;
}
